//
//  NSObject+MKSAdd.swift
//  MeetCarefree
//
//  Created by MK on 2021/6/10.
//  Copyright © 2021 xxf. All rights reserved.
//

import Foundation

extension NSObject {
    @objc class var nameOfClass: String {
        return NSStringFromClass(self).components(separatedBy: ".").last! as String;
    }
    
    @objc func copySelfPerfect() -> Any?{
        if let obj = NSKeyedUnarchiver.unarchiveObject(with: NSKeyedArchiver.archivedData(withRootObject: self)) {
            return obj;
        }else{
            return nil;
        }
    }
}
